/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author Cheng
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '/@/api/model/baseModel';

const { adminPath } = useGlobSetting();

export interface UserAuthentication extends BasicModel<UserAuthentication> {
  username?: string; // 用户名
  userCode?: string; // 用户唯一标识码
  facePhoto?: string; // 人像信息照片
  idCardFront?: string; // 身份证人像面照片
  idCardBack?: string; // 身份证国徽面照片
  enterpriseId?: string; // 企业id
  enterpriseName?: string; // 企业名称
  createTime?: string; // 创建时间
  approvalTime?: string; // 审批时间
  approvalOpinion?: string; // 审批意见
}

export const userAuthenticationList = (params?: UserAuthentication | any) =>
  defHttp.get<UserAuthentication>({ url: adminPath + '/imageverification/userAuthentication/list', params });

export const userAuthenticationListData = (params?: UserAuthentication | any) =>
  defHttp.post<Page<UserAuthentication>>({ url: adminPath + '/imageverification/userAuthentication/listData', params });

export const userAuthenticationForm = (params?: UserAuthentication | any) =>
  defHttp.get<UserAuthentication>({ url: adminPath + '/imageverification/userAuthentication/form', params });

export const userAuthenticationSave = (params?: any, data?: UserAuthentication | any) =>
  defHttp.post<UserAuthentication>({ url: adminPath + '/imageverification/userAuthentication/save', params, data });

export const userAuthenticationDelete = (params?: UserAuthentication | any) =>
  defHttp.get<UserAuthentication>({ url: adminPath + '/imageverification/userAuthentication/delete', params });
